Skip to content

sensing: sensor_mgmt: fix potential NULL dereferences#102044

Merged
henrikbrixandersen merged 1 commit into
zephyrproject-rtos:mainfrom
moonlight83340:sensing/interval-null-fix
Jan 14, 2026
Merged

sensing: sensor_mgmt: fix potential NULL dereferences#102044
henrikbrixandersen merged 1 commit into
zephyrproject-rtos:mainfrom
moonlight83340:sensing/interval-null-fix

Conversation

@moonlight83340
Copy link
Copy Markdown
Contributor

Ensure pointers are validated before dereferencing them in set_arbitrate_interval() and set_interval().

This avoids accessing sensor or connection fields prior to validation and makes the code safe even when assertions are disabled.

No functional change intended.

Ensure pointers are validated before dereferencing them in
set_arbitrate_interval() and set_interval().

This avoids accessing sensor or connection fields prior to
validation and makes the code safe even when assertions are
disabled.

No functional change intended.

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Jan 9, 2026

@moonlight83340 moonlight83340 marked this pull request as ready for review January 9, 2026 23:24
@zephyrbot zephyrbot requested review from lixuzha and yperess January 9, 2026 23:26
@henrikbrixandersen henrikbrixandersen merged commit 3755392 into zephyrproject-rtos:main Jan 14, 2026
30 checks passed
@moonlight83340 moonlight83340 deleted the sensing/interval-null-fix branch January 14, 2026 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants